package com.core.reach.cloudhub.lb;

import org.springframework.cloud.client.ServiceInstance;

import java.util.List;

/**
 * @author ga.zhang
 * @version V1.0
 * @description: TODO
 * @date 2020/3/25 15:14
 **/
public interface LoadBalancer {

    /**
     * 自定义负载均衡方案
     *
     * @param serviceInstances 所有服务实例
     * @return ServiceInstance服务实例
     */
    ServiceInstance instance(List<ServiceInstance> serviceInstances);

}
